package com.sc.nft.feign;


import com.sc.nft.req.home.HomePageReq;
import com.sc.nft.req.pointsrule.PointsRuleReq;
import com.sc.nft.sup.Result;
import com.sc.nft.vo.home.HomePageDetailsVO;
import com.sc.nft.vo.pointsrule.PointsRuleDetailsVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author JYT
 * @create 2024/4/27 11:29
 */
@FeignClient(name = "meta-mall-mini-app", path = "/wxMiniMall/pointsRule")
public interface WxMiniPointsRuleClient {


    /**
     * 小程序积分规则保存
     * @param request
     * @return
     */
    @PostMapping(value = "/save", produces = MediaType.APPLICATION_JSON_VALUE)
    Result savePointsRule(PointsRuleReq request);


    /**
     * 小程序积分规则详情
     * @return
     */
    @PostMapping(value = "/details", produces = MediaType.APPLICATION_JSON_VALUE)
    PointsRuleDetailsVO pointsRuleDetails();

    /**
     * 小程序用户积分查看规则
     * @return
     */
    @PostMapping(value = "/webGetRule", produces = MediaType.APPLICATION_JSON_VALUE)
    Result<String> webGetRule();
}
